package hy.planegame.sprite

import android.graphics.Canvas
import hy.planegame.utils.*

/**
 * Created time : 2017/9/4 15:54.
 * @author HY
 */
class Props : Sprite<Props>() {
    private val degree = nextFloat(45f, -45f)

    private val num = random.nextInt(99) + 1

    private val bitmap = when (num % 3) {
        0 -> {
            power
        }
        1 -> {
            newBullet
        }
        2 -> {
            shield
        }
        else -> {
            power
        }
    }

    private val width=bitmap.width
    private val height=bitmap.height


    override fun draw(canvas: Canvas?) {

    }

    override fun logic() {

    }

    override fun destroy() {

    }
}